package com.cashoutgaming.shared.common;


public enum ConsoleType {

	XBOX360("360", "Xbox 360"), XBOXONE("ONE", "Xbox One"), PS3("PS3", "PS3"), PS4("PS4", "PS4");;

	private String abrv = "";
	private String full = "";

	private ConsoleType(final String abrv, final String full) {
		this.abrv = abrv;
		this.full = full;
	}

	public String getAbrv() {
		return abrv;
	}
	
	public String getFull() {
		return full;
	}

	public static ConsoleType getEnumForType(final String abrv) {
		for (final ConsoleType theEnum : ConsoleType.values()) {
			if (theEnum.getAbrv().equalsIgnoreCase(abrv)) {
				return theEnum;
			}
		}
		return null;
	}
}
